#ifndef WELCOME_DLG_H
#define WELCOME_DLG_H

#include "0-data/avatar.h"
#include "2-widgets/create_new_avatar_dlg.h"

#include <QDialog>

namespace Ui {
class WelcomeDlg;
}

class WelcomeDlg : public QDialog
{
    Q_OBJECT

public:
    explicit WelcomeDlg(QWidget *parent = nullptr);
    ~WelcomeDlg();

private:
    void InitData();

    void UpdateAvatarWidget();

private slots:
    void slot_get_avatars_finished();

    void slot_save_finished();

    void slot_avatars_clicked(QString, bool);

    void slot_insert_accepted();

    void slot_insert_rejected();

    void on_btn_delete_clicked();

    void on_btn_confirm_clicked();

private:
    Ui::WelcomeDlg *ui;

    QList<Avatar> avatar_list_;

    QStringList selected_avatar_list_;

    CreateNewAvatarDlg *dlg_;
};

#endif // WELCOME_DLG_H
